﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserCenter.ascx.cs"
    Inherits="TimKen.Web.UserControls.UserCenter" %>
<%if (CurrentUserName != null)
  {%>
<div class="basic_left common_border">
    <h1>
        <%=GetLangString("BaseInfo") %></h1>
    <ul>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="text-align: center;">
            <tr>
                <th scope="row">
                    <%=GetLangString("UserName") %>：
                </th>
                <td>
                    <span>
                        <%=CurrentUserName.ToString()%></span>
                </td>
            </tr>
            <tr>
                <th scope="row">
                    <%=GetLangString("MenuMessage") %>：
                </th>
                <td>
                    <a href="../User/Inbox.aspx"><code>0</code>条</a>
                </td>
            </tr>
            <%   if (CurrentUser != null)
                 {
                     if (!CurrentUser.IsValid)
                     {
            %>
            <tr>
                <th scope="row">
                    激活邮箱：
                </th>
                <td>
                    <a href="../User/AfterRegister.aspx?action=1" style="color: Red;">点击激活</a>
                </td>
            </tr>
            <%
                     }
                 } %>
            <tr>
                <th scope="row">
                    <a href="../User/Logout.aspx">
                        <%=GetLangString("Logout") %></a>
                </th>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
    </ul>
</div>
<div class="customer_left common_border">
    <h1>
        <%=GetLangString("MenuMemberCentre") %></h1>
    <ul>
        <li><a href="../User/Edit.aspx">
            <%=GetLangString("Profile") %></a></li>
        <li><a href="../Shop/ShopProJect.aspx">
            <%=GetLangString("ShoppingCart") %> <span class="customer_lefth">(<%=this.ShopCart.GetItems!=null?this.ShopCart.GetItems.Count:0 %>)</span></a></li>
        <li><a href="../Shop/OrderHistory.aspx">
            <%=GetLangString("BackToHistoryOrder") %></a><span>(<%=OrderSize%>)</span></li>
        <li><a href="../User/FavoriteView.aspx">
            <%=GetLangString("Favorite") %></a><span>(<%=FavoriteSize%>)</span></li>
    </ul>
</div>
<%}%>
